package com.ofood.data.service;

import com.ofood.domain.Food;

import java.util.List;

public interface IFoodService {
    /**
     *
     * @param foodId food id
     * @return food
     */
    Food getFoodById(Long foodId);

    /**
     *
     * @param food
     * @return insert result
     */
    boolean insertFood(Food food);

    /**
     *
     * @param foodId
     * @return delete result
     */
    boolean deleteFood(Long foodId);

    /**
     *
     * @param food
     * @return update result
     */
    boolean updateFood(Food food);

    /**
     * get all food
     * @return
     */
    List<Food> getAllFood();
}
